import service from "@/utils/request";

export const electiveCoursesApi = (id: string) => {
  return service.get('/t/course/info/'+ id)
}

export const useGetCouInfoApi = (data: any) => {
  if (data.id) return service.put('/t/course', data)
  else return service.post('/t/course', data)
}